//
//  AppDelegate.swift
//  XSQWiFi
//
//  Created by XinPengLee on 2025/5/7.
//

import UIKit
import IQKeyboardManagerSwift

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    var isForceLandscape:Bool = false
    var isForcePortrait:Bool = false
    var isForceAllDerictions:Bool = false

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window?.backgroundColor = UIColor.white
        configLibrary()
         return true
    }
    // MARK: - Library config
    func configLibrary() {
        SVProgressHUD.setMaximumDismissTimeInterval(1.5)
        IQKeyboardManager.shared.enable = true
        IQKeyboardManager.shared.enableAutoToolbar = true
        window?.rootViewController = XSQTabBarController()

        window?.makeKeyAndVisible()
        
    }
}

